﻿using GenericRepositoryUnitOfWorkDemo.Domain.Abstracts.Entites;
using GenericRepositoryUnitOfWorkDemo.Domain.Abstracts.Repositories;
using Microsoft.EntityFrameworkCore;

namespace GenericRepositoryUnitOfWorkDemo.Infrastructure.Abstracts.Repositories;

public interface IEfCoreRepositoryBase<TEntity, TKey> : IRepository<TEntity, TKey>
    where TEntity : class, IEntity<TKey>
{
    Task<DbContext> GetDbContextAsync();
    Task<DbSet<TEntity>> GetDbSetAsync();
}